package com.ilongsay.entity;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import java.io.Serializable;

/**
 * @Author ilongsay
 * @Email ilongsay@163.com
 * @Copyright 版本所有，侵权必究！
 * @Datetime 2018-10-16 23:57
 * @Describution 设置对象的克隆
 */

public class FaPiaoDetail implements Serializable,Cloneable{
    private static final long serialVersionUID = 1L;

    @JSONField(ordinal = 1)
    private Integer pid;//id
    @JSONField(ordinal = 2)
    private String upid;//本地数据库随机uuid
    @JSONField(ordinal = 3)
    private String billCode;//订单号
    @JSONField(ordinal = 4)
    private String code;//货品编码
    @JSONField(ordinal = 5)
    private String name;//商品名称，必填
    @JSONField(ordinal = 6)
    private String unt;//计量单位
    @JSONField(ordinal = 7)
    private String descript;//规格型号
    @JSONField(ordinal = 8)
    private String quantity;//数量，必填
    @JSONField(ordinal = 9)
    private String untPrice;//单价，含税标记为含税就是含税单价，未税就是未税单价
    @JSONField(ordinal = 10)
    private String taxPrice;//含税单价
    @JSONField(ordinal = 11)
    private String total;//金额[2位小数]（含税未税选其一）
    @JSONField(ordinal = 12)
    private String untotal;//用来存储未税金额
    @JSONField(ordinal = 13)
    private String taxRate;//税率
    @JSONField(ordinal = 14)
    private String taxItem;//税目，不填
    @JSONField(ordinal = 15)
    private String taxAmount;//税额[2位小数位]（金额税额2选1）
    @JSONField(ordinal = 16)
    private String taxFlag;//含税标记（0不含税，1含税），同时作用于单价和金额
    @JSONField(ordinal = 17)
    private String kJE;//扣减额，差额发票
    @JSONField(ordinal = 18)
    private String zeroRateFlg;//零税率标记 0：出口退税，1：免税，2：不征收，3 普通零税率
    @JSONField(ordinal = 19)
    private String goodsTaxNo;//19位税收分类编码，必填
    @JSONField(ordinal = 20)
    private String untPriceRud;//未税单价小数位：0不控制；最多12位小数，-1由系统统一控制
    @JSONField(ordinal = 21)
    private String taxPriceRud;//含税单价小数位：0不控制；最多12位小数，-1由系统统一控制
    @JSONField(ordinal = 22)
    private String invPriceType;//开票时单价类型 0 以未税单价开票 1 以含税单价开票，-1由系统统一控制
    @JSONField(ordinal = 23)
    private String discountPrice;//折扣金额
    @JSONField(ordinal = 24)
    private String getDiscountTaxAmount;//折扣税额
    @JSONField(ordinal = 25)
    private String discountRate;//折扣比率
    @JSONField(ordinal = 26)
    private String oldCode;//原始的订单号码
    @JSONField(ordinal = 27)
    private String notes;//设置的原始备注

    @Override
    public String toString() {
        return "FaPiaoDetail{" +
                "pid=" + pid +
                ", upid='" + upid + '\'' +
                ", billCode='" + billCode + '\'' +
                ", code='" + code + '\'' +
                ", name='" + name + '\'' +
                ", unt='" + unt + '\'' +
                ", descript='" + descript + '\'' +
                ", quantity='" + quantity + '\'' +
                ", untPrice='" + untPrice + '\'' +
                ", taxPrice='" + taxPrice + '\'' +
                ", total='" + total + '\'' +
                ", untotal='" + untotal + '\'' +
                ", taxRate='" + taxRate + '\'' +
                ", taxItem='" + taxItem + '\'' +
                ", taxAmount='" + taxAmount + '\'' +
                ", taxFlag='" + taxFlag + '\'' +
                ", kJE='" + kJE + '\'' +
                ", zeroRateFlg='" + zeroRateFlg + '\'' +
                ", goodsTaxNo='" + goodsTaxNo + '\'' +
                ", untPriceRud='" + untPriceRud + '\'' +
                ", taxPriceRud='" + taxPriceRud + '\'' +
                ", invPriceType='" + invPriceType + '\'' +
                ", discountPrice='" + discountPrice + '\'' +
                ", getDiscountTaxAmount='" + getDiscountTaxAmount + '\'' +
                ", discountRate='" + discountRate + '\'' +
                ", oldCode='" + oldCode + '\'' +
                ", notes='" + notes + '\'' +
                '}';
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getUpid() {
        return upid;
    }

    public void setUpid(String upid) {
        this.upid = upid;
    }

    public String getBillCode() {
        return billCode;
    }

    public void setBillCode(String billCode) {
        this.billCode = billCode;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUnt() {
        return unt;
    }

    public void setUnt(String unt) {
        this.unt = unt;
    }

    public String getDescript() {
        return descript;
    }

    public void setDescript(String descript) {
        this.descript = descript;
    }

    public String getQuantity() {
        return quantity;
    }

    public void setQuantity(String quantity) {
        this.quantity = quantity;
    }

    public String getUntPrice() {
        return untPrice;
    }

    public void setUntPrice(String untPrice) {
        this.untPrice = untPrice;
    }

    public String getTaxPrice() {
        return taxPrice;
    }

    public void setTaxPrice(String taxPrice) {
        this.taxPrice = taxPrice;
    }

    public String getTotal() {
        return total;
    }

    public void setTotal(String total) {
        this.total = total;
    }

    public String getUntotal() {
        return untotal;
    }

    public void setUntotal(String untotal) {
        this.untotal = untotal;
    }

    public String getTaxRate() {
        return taxRate;
    }

    public void setTaxRate(String taxRate) {
        this.taxRate = taxRate;
    }

    public String getTaxItem() {
        return taxItem;
    }

    public void setTaxItem(String taxItem) {
        this.taxItem = taxItem;
    }

    public String getTaxAmount() {
        return taxAmount;
    }

    public void setTaxAmount(String taxAmount) {
        this.taxAmount = taxAmount;
    }

    public String getTaxFlag() {
        return taxFlag;
    }

    public void setTaxFlag(String taxFlag) {
        this.taxFlag = taxFlag;
    }

    public String getkJE() {
        return kJE;
    }

    public void setkJE(String kJE) {
        this.kJE = kJE;
    }

    public String getZeroRateFlg() {
        return zeroRateFlg;
    }

    public void setZeroRateFlg(String zeroRateFlg) {
        this.zeroRateFlg = zeroRateFlg;
    }

    public String getGoodsTaxNo() {
        return goodsTaxNo;
    }

    public void setGoodsTaxNo(String goodsTaxNo) {
        this.goodsTaxNo = goodsTaxNo;
    }

    public String getUntPriceRud() {
        return untPriceRud;
    }

    public void setUntPriceRud(String untPriceRud) {
        this.untPriceRud = untPriceRud;
    }

    public String getTaxPriceRud() {
        return taxPriceRud;
    }

    public void setTaxPriceRud(String taxPriceRud) {
        this.taxPriceRud = taxPriceRud;
    }

    public String getInvPriceType() {
        return invPriceType;
    }

    public void setInvPriceType(String invPriceType) {
        this.invPriceType = invPriceType;
    }

    public String getDiscountPrice() {
        return discountPrice;
    }

    public void setDiscountPrice(String discountPrice) {
        this.discountPrice = discountPrice;
    }

    public String getGetDiscountTaxAmount() {
        return getDiscountTaxAmount;
    }

    public void setGetDiscountTaxAmount(String getDiscountTaxAmount) {
        this.getDiscountTaxAmount = getDiscountTaxAmount;
    }

    public String getDiscountRate() {
        return discountRate;
    }

    public void setDiscountRate(String discountRate) {
        this.discountRate = discountRate;
    }

    public String getOldCode() {
        return oldCode;
    }

    public void setOldCode(String oldCode) {
        this.oldCode = oldCode;
    }

    public String getNotes() {
        return notes;
    }

    public void setNotes(String notes) {
        this.notes = notes;
    }
}
